package cn.com.code.design;

import cn.com.code.design.ceilling.LevelOneCeiling;
import cn.com.code.design.ceilling.LevelTwoCeiling;
import cn.com.code.design.coat.DuluxCoat;
import cn.com.code.design.coat.LiBangCoat;
import cn.com.code.design.floor.ShengXiangFloor;
import cn.com.code.design.title.DongPengTile;
import cn.com.code.design.title.MarcoPoloTile;

/**
 * @author zhengpei
 * @date 2021/9/14
 */
public class Builder {

  public IMenu levelOne(Double area) {
    return new DecorationPackageMenu(area, "豪华欧式")
        .appendCeiling(new LevelTwoCeiling())    // 吊顶，二级顶
        .appendCoat(new DuluxCoat())             // 涂料，多乐士
        .appendFloor(new ShengXiangFloor());     // 地板，圣象
  }

  public IMenu levelTwo(Double area){
    return new DecorationPackageMenu(area, "轻奢田园")
        .appendCeiling(new LevelTwoCeiling())   // 吊顶，二级顶
        .appendCoat(new LiBangCoat())           // 涂料，立邦
        .appendTile(new MarcoPoloTile());       // 地砖，马可波罗
  }

  public IMenu levelThree(Double area){
    return new DecorationPackageMenu(area, "现代简约")
        .appendCeiling(new LevelOneCeiling())   // 吊顶，二级顶
        .appendCoat(new LiBangCoat())           // 涂料，立邦
        .appendTile(new DongPengTile());        // 地砖，东鹏
  }

}
